/*
 * Copyright (c) 2017, dhl and/or its affiliates. All rights reserved.
 * dhl PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */
package com.xd.cloud.common.util;

import java.io.IOException;
import java.util.Properties;

/**
 * 工具类，提供公共方法
 * 
 * @author 云计算应用与开发项目组
 * @since V1.0
 * 
 */
public class UtilTools {

	public static String COFING_FILE = "/xd.properties";
	public static Properties p;

	public static Properties getConfig() {
		if (p == null) {
			p = new Properties();
			try {
				p.load(Thread.currentThread().getContextClassLoader()
						.getResourceAsStream(COFING_FILE));
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return p;
	}

}
